import { createApp } from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";

import installElementPlus from "./plugins/element";
import "./assets/css/icon.css";
import * as echarts from "echarts"; // import "lib-flexible-computer";
import "echarts-gl";
import axios from "axios";
import { permissionList, userinfo } from "./assets/js/permission";
import operatePermission from "./assets/js/operatePermission";
import { ElMessage, ElMessageBox, ElLoading } from "element-plus";
import DataVVue3 from '@kjgl77/datav-vue3';
import {
  getcampusList,
  branchOfficeTree,
  listExist,
  getAeaTree,
  getAeaTreeList,
  campusAlllistExist
} from "./assets/js/getcampusList";
const app = createApp(App);
installElementPlus(app);
app.config.globalProperties.$axios = axios;
app.config.globalProperties.$echarts = echarts;
app.config.globalProperties.$permissionList = permissionList;
app.config.globalProperties.$operatePermission = operatePermission;
app.config.globalProperties.$userinfo = userinfo;
app.config.globalProperties.$getcampusList = getcampusList;
app.config.globalProperties.$branchOfficeTree = branchOfficeTree;
app.config.globalProperties.$listExist = listExist;
app.config.globalProperties.$campusAlllistExist = campusAlllistExist;
app.config.globalProperties.$getAeaTree = getAeaTree;
app.config.globalProperties.$getAeaTreeList = getAeaTreeList;
app.config.globalProperties.$ElMessage = ElMessage;
app.config.globalProperties.$ElMessageBox = ElMessageBox;
app.config.globalProperties.$ElLoading = ElLoading;
app.use(DataVVue3);
app.use(store).use(router).mount("#app");
